<div class="divMainContent" align="center">
<input type="hidden" id='hdtable' value="tbl_province"/>
<div id="divFormAdd1">
[onshow;block=div;when [var.sCanEdit] = 1]
<form id="frFormAdd1" name="frFormAdd1">
<input type="hidden" id='hdlat' value="0"/>
<input type="hidden" id='hdlong' value="0"/>
<table class="tblInfo" id="tblFromAdd" width="100%">

<tr >
[onshow;block=tr;when [var.nocustomer] = 1]
<td  style="width:30%">Khách san</td>
<td >
<select id="cbbhotel" name="cbbhotel">
<option value="-1"> Chon</option>
[var.listhotel;htmlconv=no]
</select> </td>
</tr>

<tr >
<td  style="width:30%">Loai Phòng</td>
<td ><input type="text" id="txtRoomType" name="txtRoomType" /></td>
</tr>
<tr >
<td  style="width:30%">Giá Tiên</td>
<td ><input type="text"  id="txtPrice" name="txtPrice" /></td>
</tr>
<tr >
<td  style="width:30%">Ghi chú</td>
<td ><textarea cols="50" rows="5" id="txtDesc" ></textarea></td>
</tr>
<tr>
<td class="tdButton" colspan="2" align="center">
<button class="submit" id="submit" onclick="SaveFormAdd(this.form)" type="button"> Save </button> <button class="clear" type="reset" id="clear"> Reset</button> 
</td>

</tr>
</table>
</form>
</div>

<div class="divGrid" id="divGrid">e
<script type="text/javascript">
</script>

</div>

</div>

<script language="javascript">

var _global;
 $(document).ready(function(){
    _global=new Global();
    _global.gMap=new GoogleFuncs();
    //_global.vMap=new VDBFuncs();
    _global.myMap=_global.gMap;
    _global.checkMap=0;// 1VBD truoc,0 google map
   // _global.locs=new Locations();
  // _global.gMap.se

    $('#hdDrawMarker').val(1);    
    _global.gMap.latinit = 10.7654865; 
    _global.gMap.lnginit = 108.67793273;
        _global.gMap.InitMap('maptracking2');  
        
 });

function DeleteData(){
        var arID = new Array();
        var i = 0;
        $('INPUT[name=chkDelete]').each(function(){
            if($(this).attr('checked'))
            {
                arID[i] = $(this).attr('id');
                i++;
            }
        });
        var table = $('#hdtable').val();
        xajax_DeleteData(arID,table);        
}
function deletea(id){
     tmpObj = document.getElementById(id);
    tmpObj.style.display = "none";
}
var cal1 = CreateCalObject('txtFromDate', 'imgCal1');
var cal2 = CreateCalObject('txtToDate', 'imgCal2');
</script>
